package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shop/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "*:Login")
	beego.Router("/list", &controllers.ShopController{}, "*:List")
	beego.Router("/add", &controllers.ShopController{}, "*:Add")
	beego.Router("/upt", &controllers.ShopController{}, "*:Upt")
}
